package com.basic.hellorabbit.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


/**
* @Description:    客户端工具类
* @Author:         Joe
* @CreateDate:     2020/3/19 13:43
*/
@Component
public class DfsClientUtil {


    @Value("${fdfs.host}")
    private String host;

    @Value("${fdfs.port}")
    private String port;

    /**
     * 封装文件完整的URL
     * @param fullPath
     * @return
     */
    public String getCompleteURl(String fullPath){
        String fileUrl = "http://" + host + ":" + port + "/" + fullPath;
        return fileUrl;
    }


}
